package clazz.abs.abs_factory.computer;

public class USBDisk implements USB {

    private String data;
    @Override
    public String read(String path) {
        if("D".equals(path)){
         System.out.println("读取了根目录的内容");
        } else if ("C".equals(path)) {
            System.out.println("读取了C盘的内容");
        } else if ("/video".equals(path)) {
            System.out.println("读取了视频的内容");
        }
        return "没有读取任何内容";
    }

    @Override
    public void write(String data) {
    this.data=data;
    }
}
